<?php
if (!$prefs->isLocked('default_collection')):
    $collections = Groo::listCollections();
    if (($default_collection = $prefs->getValue('default_collection')) == null ||
        !isset($collections[$default_collection])) {
        $default_collection = Auth::getAuth();
    }
?>

<?php echo _("Your default collection:") ?><br />
<select name="default_collection">
<?php foreach ($collections as $id => $collection): ?>
    <option value="<?php echo htmlspecialchars($id) ?>"<?php if ($id == $default_collection) echo ' selected="selected"' ?>><?php echo htmlspecialchars($collection->get('name')) ?></option>
<?php endforeach; ?>
</select><br /><br />
<?php endif; ?>
